n = int(input().split()[0])
for i in range(0, n):
	a = int(input().split()[0])
	flag1 = (a % 3 == 0)
	flag2 = (a % 5 == 0)
	if(flag1 & flag2):
		print("fizzbuzz")
	elif(flag1):
		print("fizz")
	elif(flag2):
		print("buzz")
	else:
		print(a)